const echarts = require('echarts/lib/echarts');

const config = {
    animationDuration: 500,
    animationDurationUpdate: 3000, //就不生效2333
    legend: {
        show: true,
        left: "left",
        top: "bottom",
        textStyle: {
            color: "#999",
            fontWeight: "normal",
            fontSize: 14,
            fontFamily: "Arial"
        },
    },
    xAxis: {
        type: 'category',
        boundaryGap: false,
        data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
        show: true,
        axisLine: {
            lineStyle: {
                color: "#818285"
            }
        },
        axisLabel: {
            color: "#818285",
            fontWeight: "normal",
            fontFamily: "Microsoft Yahei",
            fontSize: 13
        },
    },
    yAxis: {
        type: "value",
        show: true,
        min:'dataMin',
        max:'dataMax',
        splitNumber:5,
        axisLine: {
            show: true,
            lineStyle: {
                color: "#999"
            }
        },
        axisLabel:{
            fontSize:12,
            fontWeight:'normal',
            fontFamily:'Microsoft YaHei',
            color:'#000'
        },
        splitLine: {
            show: true,
            lineStyle:{
                color:'#000',
                type:'solid'
            }
          }
      },
    series: [{
            name: '邮件营销',
            type: 'line',
            smooth: false,
            symbolSize: 5,
            silent:true,
            symbol: 'circle',
            label: {
                show: false,
                fontWeight:'normal',
                fontFamily:'Microsoft YaHei',
                fontSize:12,
                color:'#000'
              },
            areaStyle: {
                opacity: 0.8,
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                    offset: 0,
                    color: 'rgba(38, 129, 255,.7)'
                }, {
                    offset: 1,
                    color: 'rgba(38, 129, 255,.1)'
                }])
            },
            emphasis: {
                focus: 'series'
            },
            data: [1,12,3,14,8,11,17,18,9,22,9, 1, 2, 3, 2, 0, 7, 8, 9, 10],
            lineStyle: {
                color: '#dc1515',
                width: 5,
                type:'solid'
            },
            itemStyle: {
                color: '#dc1515'
            }
        },
        {
            name: 'test',
            data: [12,3,14,8,11,17,18,9,22,9, 11, 2, 43, 2, 0, 7, 8, 9, 30,1],
            type: 'line',
            smooth: true,
            symbol:'circle',
            lineStyle: {
                color: '#333',
                width: 5,
                type:'solid'
            },
            itemStyle: {
                color: '#dc1515'
            },
            areaStyle: {
                opacity: 0.8,
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                    offset: 0,
                    color: 'rgba(38, 129, 255,.7)'
                }, {
                    offset: 1,
                    color: 'rgba(38, 129, 255,.1)'
                }])
            },
        },
    ]
};

export {
    config
}